package com.sunjob.common.domain.resource;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author: TomHuang
 * @date: 2022/8/9 8:43
 * 员工实体类
 */

@AllArgsConstructor//生成全参数构造函数
@NoArgsConstructor//生成无参构造函数
@Data//生成getter、setter等函数
@Builder
@ToString
public class Staff {

    //员工id
    private Long staffId;
    //员工工号
    private String staffJobId;
    //员工姓名
    private String staffName;
    //员工性别
    private int staffGender;
    //员工年龄
    private int staffAge;
    //联系方式
    private String staffPhone;
    //入职时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime staffHiredate;
    //身份证号
    private String staffIc;
    //任职时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime staffTenure;
    //家庭住址
    private String staffAddress;
    //员工状态
    private int staffStatus;
    //员工类型id
    private int staffTypeId;
    //员工职位id
    private int staffPositionId;
    //员工职称id
    private int staffTitleId;

}
